package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.EcologyHatchRecordsRewards;
import com.sc.nft.entity.UserPredictEcologyHatchRewardsRecords;
import com.sc.nft.entity.vo.WaitProduceEquityCountListVO;
import com.sc.nft.entity.vo.WaitProduceEquityCountVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 生态-孵化-用户待结算奖励记录表 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-08-07
 */
public interface UserPredictEcologyHatchRewardsRecordsMapper extends BaseMapper<UserPredictEcologyHatchRewardsRecords> {

    void saveList(@Param("userPredictEcologyHatchRewardsRecordsList") List<UserPredictEcologyHatchRewardsRecords> userPredictEcologyHatchRewardsRecordsList);

    List<UserPredictEcologyHatchRewardsRecords> getNeedIssueList(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<WaitProduceEquityCountListVO> equityWaitProduce(@Param("daoId") Long daoId);

    Long getUnderPropsProduceCount(@Param("userId") Long userId ,@Param("ecologyHatchId") Long ecologyHatchId ,@Param("isSettle") boolean isSettle);
}
